<!DOCTYPE html>
<html>
<head>
  <script src="../../../resources/testharness.js"></script>
  <script src="../../../resources/testharnessreport.js"></script>
  <script src="../resources/multiple-fields-ax-value-changed-notification-helper.js"></script>
</head>
<body>
<input id=test type="time" value="12:34:56.789">
<script>
async_test((t) => {
    var testInput = document.getElementById('test');

    var listener = new TestAccessibilityControllerNotificationListener(t);
    listener.queueExpectedNotification("Focus", "Hours", "12", "\t");
    listener.queueExpectedNotification("Focus", "Minutes", "34", "4");
    listener.queueExpectedNotification("ValueChanged", "Minutes", "04");
    listener.queueExpectedNotification("ValueChanged", "Minutes", "04", "ArrowUp");
    listener.queueExpectedNotification("ValueChanged", "Minutes", "05");
    listener.queueExpectedNotification("ValueChanged", "Minutes", "05");

    testInput.focus();

    window.setTimeout(function() {
        assert_unreached("Did not receive all accessibility notifications");
        t.done();
    }, 500);
}, 'This test checks value changed accessibility notifications.');
</script>
</body>
</html>
